package com.ruoyi.tzzl.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 动态评论对象 wz_comments
 * @author by caoyong
 * @date 2022/11/18
 **/
@Data
@Accessors(chain = true)
@NoArgsConstructor
@TableName("wz_comments")
public class WzComment {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 动态表id */
    @Excel(name = "动态表id")
    private Long did;

    /**回复用户id*/
    private Long rid;

    /** 发布动态用户id */
    @Excel(name = "发布动态用户id")
    private Long wid;

    /**评论id*/
    private Long pid;

    /** 评论用户id */
    @Excel(name = "评论用户id")
    private Long cid;

    /** 评论 */
    @Excel(name = "评论")
    private String comments;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic()
    private String delFlag;

    /**用户信息*/
    @TableField(exist = false)
   private WzProgramUser user;

    /**是否实名认证(0-未实名  1-已实名)*/
    @TableField(exist = false)
    private String authentication;

    /**回复评论集合*/
    @TableField(exist = false)
    private List<WzComment> replyList;

}
